home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 October / EnigmA AMIGA RUN 22 (1997)(G.R. Edizioni)(IT)[!][issue 1997-10 & 11][EAR-CD VI].iso / progs / comms / amimud / developers / output.h < prev   
C/C++ Source or Header  |  1997-09-04  |  2KB  |  65 lines

  1. #ifndef OUTPUT_MODULE
  2.  
  3. #define OUTPUT_MODULE
  4.  
  5. #pragma libcall OutputBase OutOpen 1e 2102
  6. #pragma libcall OutputBase OutClose 24 101
  7. #pragma libcall OutputBase OutPutC 2a 2102
  8. #pragma libcall OutputBase OutPuts 30 2102
  9. #pragma libcall OutputBase OutWrite 36 432104
  10. #pragma libcall OutputBase OutFlush 3c 101
  11. #pragma libcall OutputBase OutVPrintf 42 32103
  12. #pragma tagcall OutputBase OutPrintf 42 32103
  13. #pragma libcall OutputBase OutWindow 48 101
  14. #pragma libcall OutputBase OutAllow 4e 101
  15. #pragma libcall OutputBase OutReview 54 101
  16.  
  17. /* The first functions should work as the dos.library ones, if you don't support
  18.    bufferized writing simply left OutFlush empty */
  19.  
  20. void OutPuts(APTR handler, STRPTR string);
  21. void OutPutC(APTR handler, LONG character);
  22. void OutPrintf(APTR handler, STRPTR formatstring, ...);
  23. void OutVPrintf(APTR handler, STRPTR formatstring, LONG *argv);
  24. void OutFlush(APTR handler);
  25. void OutClose(APTR handler);
  26. void OutWrite(APTR handler, STRPTR string, ULONG elementsize, ULONG numelements);
  27. APTR OutOpen(STRPTR formatstring, LONG flags);
  28.  
  29.  
  30. /* Return the pointer to your window */
  31.  
  32. struct Window *OutWindow(APTR handler);
  33.  
  34. /* Tell TRUE or FALSE to one of the available options */
  35.  
  36. BOOL OutAllow(LONG options);
  37.  
  38.  
  39. /* Returns NULL if you don't support ReviewBuffer, otherwise a pointer to a
  40.    list of lines where each line is pointed by node->ln_Name and 0 terminated.
  41.    The lines should not have newlines.
  42.  */
  43.  
  44. struct List *OutReview(APTR handler);
  45.  
  46. extern struct Library *OutputBase;
  47.  
  48. /* Flags used by OutOpen */
  49.  
  50. #define PUBLIC_SCREEN    1
  51. #define ANSI        2
  52. #define ANSI16        4
  53. #define MONO        8
  54. #define AMIGA        16
  55. #define REVIEW_BUFFER    32
  56.  
  57. /* Options for OutAllow */
  58.  
  59. #define ANSI_ON_PUBSCREEN 1
  60. #define ANSI16_ON_PUBSCREEN 2
  61. #define ANSI16_ON_PUBSCREEN_OS_2 3
  62. #define ANSI_ON_PUBSCREEN_OS_2 4
  63.  
  64. #endif
  65.